

net.Receive("alertsent", function(length, client)
chat.AddText(Color(255, 0, 0, 255), "[ALERT]", Color(255, 255, 255, 255), " Your alert has been sent!")
end )

net.Receive("alert", function(length, client)
local read = net.ReadString()
local read2 = net.ReadString()
local read3 = net.ReadString()
local from = net.ReadString()
local message = net.ReadString()
chat.AddText(Color(255, 0, 0, 255), "[ALERT] ", Color(read, read2, read3, 255), from..": ", Color(255, 255, 255, 255), message)
end )

timer.Create("Advert", 600, 0, function()
chat.AddText(Color(255, 255, 255, 255), "This server is running Tyguy's ", Color(255, 0, 0, 255), "Alert", Color(255, 255, 255, 255), " plugin!")
end )